import { MyRequest } from "./api";
// 根据opendid获取用户信息
export function getPeopleAllInfo() {
  return new Promise((resolve, reject) => {
    let openid;
    uni.getStorage({
      key: "openid",
      success: (data) => {
        openid = data.data;
        MyRequest({
          url: "/people-all",
        }).then((res) => {
          resolve(res.data);
        });
      },
      fail: (error) => {
        console.log(error);
        reject(error);
      },
    });
  });
}
